﻿@model Seven.Entity.HrStaff
<script type="text/javascript" src="~/Scripts/views/Staff/StaffManage.js"></script>

<div id="layout-user" class="easyui-layout" data-options="fit:true">
    <div data-options="region:'west',split:true,border:false,minWidth:150,maxWidth:180,title:'公司部门列表'" style="width: 160px; border-right-width: 1px;">
        <ul id="tree"></ul>
    </div>
    <div data-options="region:'center',border:false" style="border-left-width: 1px;">
        <div class="easyui-layout" data-options="fit:true">
            <div data-options="region:'north',title:'搜索条件',border:false" style="height: 95px;">
                <div style="padding: 4px;">
                    <form id="queryFm" name="queryFm" method="post">
                        <table border="0" style="padding: 1px; margin: 0px; width: 100%;">
                            <tr>
                                <td style="width: 75px; text-align: right;">
                                    姓名：
                                </td>
                                <td style="width: 130px;">
                                    @Html.TextBoxFor(m => m.RealName).ForQuery(QueryMethod.Like)
                                </td>
                                <td style="width: 75px; text-align: right;">
                                    身高：
                                </td>
                                <td style="width: 130px;">
                                    @Html.TextBoxFor(m => m.height).ForQuery(QueryMethod.LessThan)
                                </td>
                                <td style="width: 75px; text-align: right;">
                                    性别：
                                </td>
                                <td style="width: 130px;">
                                    @Html.TextBoxFor(m => m.Sex).ForQuery(QueryMethod.Equal)
                                </td>
                                <td style="text-align: right;"></td>
                            </tr>
                            <tr>
                                <td style="width: 75px; text-align: right;">
                                    出生日期：
                                </td>
                                <td style="width: 130px;" colspan="3">
                                    @Html.TextBoxFor(m => m.Birthday, new { style = "width:110px;", @id = "Birthday1" }).ForQuery(QueryMethod.GreaterThanOrEqual) 至
                                    @Html.TextBoxFor(m => m.Birthday, new { style = "width:110px;", @id = "Birthday2" }).ForQuery(QueryMethod.LessThanOrEqual)
                                </td>
                                <td style="width: 75px; text-align: right;"></td>
                                <td style="width: 130px;"></td>
                                <td style="text-align: right;">
                                    <a id="aquery" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-search'">查询</a>
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>
            <div data-options="region:'center',border:false">
                <table id="dg"></table>
            </div>
        </div>
    </div>

    <script>
        $(function () {
            window.comlib.bindKeyDownToQueryFormInput();

            window.views.Staff.StaffManage.initPage("@ViewBag.ButtonPermissions");
        });
    </script>
</div>
